package com.dyz.swordFingerOffer;

/**
 * @author: daiyizheng
 * @date: 2021/5/29 17:34
 * @description:
 */
public class minNumberInRotateArray11 {
    public int minNumberInRotateArray(int [] array) {
        if(array==null || array.length==0){
            return -1;
        }
        int min = array[0];
        for (int i=1; i<array.length; i++){
            if(min>array[i]){
                min = array[i];
            }
        }
        return min;

    }
}
